package com.example.hxds.mis.api.feign;

import cn.hutool.core.bean.BeanUtil;
import com.example.hxds.common.util.R;
import com.example.hxds.mis.api.controller.form.SearchDriverByPageForm;
import com.example.hxds.mis.api.controller.form.SearchDriverRealSummaryForm;
import com.example.hxds.mis.api.controller.form.UpdateDriverRealAuthForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.Map;


/**
 * @ClassName: DrServiceApi
 * @Description: 远程调用hxds-dr客户端
 * @Author: 丛雨
 * @Date: 2024/1/13 19:23
 */
@FeignClient(value = "hxds-dr")
public interface DrServiceApi {

    @PostMapping("/driver/searchDriverByPage")
    R searchDriverByPage(@RequestBody @Valid SearchDriverByPageForm form);

    @PostMapping("/driver/searchDriverRealSummary")
    R searchDriverRealSummary(@RequestBody @Valid SearchDriverRealSummaryForm form);

    @PostMapping("/driver/updateDriverRealAuth")
    R updateDriverRealAuth(@RequestBody @Valid UpdateDriverRealAuthForm form);
}

